<template>
	<view class="transfer-page" :class="{'orange' : pageTheme == 'orange'}">
		
		<image v-if="pageTheme == 'blue'" src="https://cdcrm.oss-cn-hangzhou.aliyuncs.com/cdcrm/systeam/images/transfer-blue.png" class="b-pic" mode="widthFix"></image>
		<image v-if="pageTheme == 'orange'" src="https://cdcrm.oss-cn-hangzhou.aliyuncs.com/cdcrm/systeam/images/transfer-orange.png" class="b-pic" mode="widthFix"></image>
		<view class="btn-box">
			<image v-if="pageTheme == 'blue'" src="../static/mini-blue.png" class="mini"></image>
			<image v-if="pageTheme == 'orange'" src="../static/mini-orange.png" class="mini"></image>
			<text>点击打开微信小程序</text>
		</view>
	</view>
</template>

<script>
	import career from "@/common/dictionary/career.js"
	export default {
		data() {
			return {
				pageTheme: 'blue',  // orange  blue
				showPop: false,
				formItem: {
					
				}
			}
		},
		
		onLoad(options) {
			this.formItem.channelId = options.id || 100023
			this.getChannel()
		},
		methods: {
			getChannel(){
				this.$request({
					url: 'ChannelController/appGetUiType',
					method: 'get',
					data: {
						channelId: this.formItem.channelId
					}
				}).then(res => {
					if(res.code==200){
						if(res.data == 2){
							this.pageTheme = 'orange'
						}
					}
				})
			},
		},
	}
</script>

<style lang="scss" scoped>
	.transfer-page {
		position: relative;
		background-color: #33ADFF;
		min-height: 100vh;
		
		.b-pic {
			width: 100%;
		}
		
		.btn-box {
			position: absolute;
			top: 1020rpx;
			left: 24rpx;
			z-index: 2;
			width: 702rpx;
			height: 144rpx;
			background: #FFFFFF;
			border-radius: 32rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			
			.mini {
				width: 48rpx;
				height: 48rpx;
			}
			
			text {
				margin-left: 16rpx;
				font-size: 40rpx;
				font-weight: bold;
				color: #297EFF;
			}
		}
	}
</style>